package com.bcu.alumnus.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

@ApiModel(value = "com-bcu-alumnus-entity-Moment")
@Entity
@Data
public class Moment {


  /**
   * 瞬间编号
   */
  @ApiModelProperty(value = "瞬间编号")
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Integer momentId;


  /**
   * 瞬间发布者编号
   */
  @ApiModelProperty(value = "瞬间发布者编号")
  private String momentUserId;


  /**
   * 瞬间内容
   */
  @ApiModelProperty(value = "瞬间内容")
  private String momentContent;


  /**
   * 瞬间图片
   */
  @ApiModelProperty(value = "瞬间图片")
  private String momentContentImg;


  /**
   * 瞬间状态
   */
  @ApiModelProperty(value = "瞬间状态")
  private String momentStatus;


  /**
   * 瞬间时间
   */
  @ApiModelProperty(value = "瞬间时间")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date momentTime;

}
